package main

import "fmt"

func main() {
	s1 := [...]int{1, 4, 9, 16, 2, 5, 10, 15}
	s2 := make([]int, 0)
	for i := 0; i < 7; i++ {
		s2 = append(s2, s1[i]+s1[i+1])
	}
	fmt.Printf("%+v,len=%d,cap=%d\n", s2, len(s2), cap(s2))
	//[5 13 25 18 7 15 25],len=7,cap=8

}
